package com.sjqg.web;
import java.util.List;
import java.util.Map;
import com.sjqg.dao.SwiperDao;
import com.sjqg.model.Swiper;
import net.sf.json.JSONArray;

public class GetBannerData extends JsonServlet {
	private SwiperDao swiperDao = new SwiperDao();
	@Override
	public String dealInput(Map<String, String[]> input) {
		List<Swiper> swipers = swiperDao.getAll();
		return JSONArray.fromObject(swipers).toString();
	}

}
